import http from '@/http'

// 商户管理相关-修改结算卡

// 上传图片
const uploadImg = (params) => {
    return http.post(`v1/upload/credential`, params, [{
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    }]
    )
}

// 公共分类-下载模板
const base = (params) => {
    return http.get('v1/base', params, [
        {
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        }
    ])
}

// 获取银行卡列表
const getBankList = (params) => {
    return http.get('v1/banks', params)
}

// 支行搜索
const branchSearch = (params) => {
    return http.post('v1/banks/branchSearch', params)
}

export { uploadImg, base, getBankList, branchSearch }